//
//  ViewController.m
//  UI06_UIscrollView_UIPageControl
//
//  Created by aaaaaa on 16/6/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "PictureView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createPictureView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)createPictureView{
    PictureView *pictureView = [[PictureView alloc] initWithFrame:CGRectMake(0, 0, 300, 500)];
    pictureView.center = self.view.center;
//    pictureView.backgroundColor = [UIColor redColor];
    [self.view addSubview:pictureView];
    [pictureView release];
    
    /**创建图片数组**/
    UIImage *image1 = [UIImage imageNamed:@"cymbal_00.jpg"];
    UIImage *image2 = [UIImage imageNamed:@"cymbal_01.jpg"];
    UIImage *image3 = [UIImage imageNamed:@"cymbal_02.jpg"];
    pictureView.imageArray = @[image3,image1, image2, image3,image1];

}
@end
